package com.gict.antifraudback.controller.front.tags;

import com.gict.antifraudback.result.ResultView;
import com.gict.antifraudback.service.TagsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ThinkPad
 */
@RestController
@Slf4j
@RequestMapping("/mapi/tags")
public class FrontTagsController {

    @Autowired
    private TagsService tagsService;

    @GetMapping("/getAllTags")
    public ResultView getAllTags() {
        return ResultView.ok(tagsService.list());
    }
}
